package com.itlong.cloud.user.app;

import com.itlong.cloud.POJO.DTO.app.AppGetParkingListDTO;
import com.itlong.cloud.POJO.VO.app.AppGetParkingDateVO;
import com.itlong.cloud.POJO.VO.app.AppGetParkingListVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <desc>
 *      停车记录暴露接口
 * <desc/>
 *
 * @createDate 2018/11/08
 */
@FeignClient(name="user-service")
public interface IAppParkRecordServiceClient {

    /**
     * <desc>
     *      获取用户停车记录列表
     * </desc>
     *
     * @return 用户停车记录列表
     * @author wanghzi
     * @createDate 2018/11/09
     */
    @PostMapping(path = "app/parking/getParkingList")
    AppGetParkingListVO getParkingList(@RequestBody AppGetParkingListDTO appGetParkingListDTO) throws Exception;

    /**
     * <desc>
     *      获取该用户停车记录列表有效查询时间
     * </desc>
     *
     * @return 该用户停车记录列表有效查询时间
     * @author wanghzi
     * @createDate 2018/11/09
     */
    @PostMapping(path = "app/parking/getParkingDateList")
    List<AppGetParkingDateVO> getParkingDateList(@RequestParam("carNum") String carNum,@RequestParam("userId") String userId) throws Exception;
}
